﻿using System.Windows;
using HRMSys.UI.SystemMgr;

namespace HRMSys.UI
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
             
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            LoginWindown logWindow = new LoginWindown();
            //logWindow.ShowDialog();
            if (logWindow.ShowDialog() != true)
            {
                Application.Current.Shutdown();
            }
        }

        private void miOperatorMgr_Click(object sender, RoutedEventArgs e)
        {
            OperatorListUI ui = new OperatorListUI();
            ui.ShowDialog();
        }

        private void miDepartMgr_Click(object sender, RoutedEventArgs e)
        {
            DepartmentListUI listUI = new DepartmentListUI();
            listUI.ShowDialog();
        }

        private void miEmployeeMgr_Click(object sender, RoutedEventArgs e)
        {
            EmployeeListUI ui = new EmployeeListUI();
            ui.ShowDialog();
        }

        private void btnSetting_Click(object sender, RoutedEventArgs e)
        {
            SettingUI ui = new SettingUI();
            ui.ShowDialog();
        }

        private void miSalarySheet_Click(object sender, RoutedEventArgs e)
        {
            BuildSalarySheetUI ui = new BuildSalarySheetUI();
            ui.ShowDialog();
        }

        private void miPrintSalarySheet_Click(object sender, RoutedEventArgs e)
        {
            PrintSalarySheet sheet = new PrintSalarySheet();
            sheet.ShowDialog();
        }
    }
}

